package com.study.spring.thread;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author
 * @date 2021年11月21日 20:46
 * @description
 */

@RestController
public class AsynController {

    @Autowired
    private AsynService asynService;


    @GetMapping("/test1")
    public void async(){
        asynService.Test1();
    }

    @GetMapping("/test2")
    public void asyn2(){
        asynService.Test2();
    }


}
